package com.itqf.mapper;

import com.itqf.bean.DtsAdmin;
import com.itqf.bean.DtsAdminExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtsAdminMapper {

    long countByExample(DtsAdminExample example);

    int deleteByExample(DtsAdminExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DtsAdmin record);

    int insertSelective(DtsAdmin record);

    List<DtsAdmin> selectByExample(DtsAdminExample example);

    DtsAdmin selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DtsAdmin record, @Param("example") DtsAdminExample example);

    int updateByExample(@Param("record") DtsAdmin record, @Param("example") DtsAdminExample example);

    int updateByPrimaryKeySelective(DtsAdmin record);

    int updateByPrimaryKey(DtsAdmin record);

    /**
     * 插入dtsAdmin
     * @param dtsAdmin
     * @return
     */
    int insertDtsAdmin(DtsAdmin dtsAdmin);

    /**
     * 根据主键修改逻辑删除
     * @param id
     * @param b
     * @return
     */
    int updateDeletedByPrimaryKey(@Param("id") Integer id, @Param("b") boolean b);
}